From: Simen Heggestøyl Date: Mon, 8 Mar 2021 11:38:41 +0000 (+0100) Subject: Use `pop-to-buffer-same-window' in `project-eshell' X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~18^2~3614 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=432c1aaa80ce109250a93f50858a03ce3d01ca34;p=emacs.git Use `pop-to-buffer-same-window' in `project-eshell' * lisp/progmodes/project.el (project-eshell): Use `pop-to-buffer-same-window' instead of `pop-to-buffer' to match the behavior of `M-x eshell'. --- diff --git a/lisp/progmodes/project.el b/lisp/progmodes/project.el index abe563bec04..d59da2496a7 100644 --- a/lisp/progmodes/project.el +++ b/lisp/progmodes/project.el @@ -924,7 +924,7 @@ if one already exists." "-eshell*")) (eshell-buffer (get-buffer eshell-buffer-name))) (if (and eshell-buffer (not current-prefix-arg)) - (pop-to-buffer eshell-buffer) + (pop-to-buffer-same-window eshell-buffer) (eshell t)))) ;;;###autoload